package cn.java78.entity;

public class Computer {
    private String name;
    private double money;
    private Monitor monitor;
    private  Chassis chassis;

    public void show(){
        System.out.println("Computer{" +
                "name='" + name + '\'' +
                ", money=" + money +
                ", monitor=" + monitor +
                ", chassis=" + chassis +
                '}');
    }



    public Computer() {
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public void setMonitor(Monitor monitor) {
        this.monitor = monitor;
    }

    public void setChassis(Chassis chassis) {
        this.chassis = chassis;
    }
}
